package cn.tianyigps.tianyigpsgatherchecker.dao;


import cn.tianyigps.tianyigpsgatherchecker.bean.AlarmModel;
import cn.tianyigps.tianyigpspublic.mongo.dao.BaseDaoImp;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Repository;

@Repository
@Slf4j
public class AlarmDao extends BaseDaoImp<AlarmModel> {
    @Autowired
    MongoTemplate mongoTemplate;
    @Override
    public void save(AlarmModel alarmModel)
    {
        mongoTemplate.insert(alarmModel, "alarmResultModel");
    }

}
